package ch.uzh.ifi.seal.ssqa.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import ch.uzh.ifi.seal.ssqa.SsqaPlugin;

/**
 * Class used to initialize default preference values.
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = SsqaPlugin.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.STORAGE_NAMESPACE, "SSQA_Storage");
		store.setDefault(PreferenceConstants.STORAGE_URI, "jdbc:mysql://127.0.0.1:3306");
		store.setDefault(PreferenceConstants.STORAGE_DB, "ssqa_test");
		store.setDefault(PreferenceConstants.STORAGE_DRIVER, "com.mysql.jdbc.Driver");
		store.setDefault(PreferenceConstants.STORAGE_USER, "root");
		store.setDefault(PreferenceConstants.STORAGE_PW, "password");
		
		store.setDefault(PreferenceConstants.CC_PATH_TO_SOURCE, "\\CCFS\\src");
		store.setDefault(PreferenceConstants.CC_VIEW_DEVICE, "Y");
		store.setDefault(PreferenceConstants.CC_VOBS, "CCFS, LOADER, TOOLS, NCFS, UCM_PVOB_PF91");
		store.setDefault(PreferenceConstants.CC_DIFF_REPORTS, false);
		
		store.setDefault(PreferenceConstants.ANALYSIS_DEFAULT_ARCH_FILE, "/Schindler Architecture/architecture.ssqa");
		store.setDefault(PreferenceConstants.ANALYSIS_COUPLING_THRESHOLD, 20);
		store.setDefault(PreferenceConstants.ANALYSIS_COUPLING_COUNT_THRESHOLD, 20);
		
	}
}
